// HealthInfo.java
package com.community.model;

import java.time.LocalDateTime;

public class HealthInfo {
    private Integer id;
    private Integer elderId;
    private LocalDateTime recordDate;
    private Double temperature;
    private String bloodPressure;
    private String symptoms;

    public HealthInfo() {}

    public HealthInfo(Integer id, Integer elderId, LocalDateTime recordDate,
                      Double temperature, String bloodPressure, String symptoms) {
        this.id = id;
        this.elderId = elderId;
        this.recordDate = recordDate;
        this.temperature = temperature;
        this.bloodPressure = bloodPressure;
        this.symptoms = symptoms;
    }

    // Getters and Setters
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public Integer getElderId() { return elderId; }
    public void setElderId(Integer elderId) { this.elderId = elderId; }
    public LocalDateTime getRecordDate() { return recordDate; }
    public void setRecordDate(LocalDateTime recordDate) { this.recordDate = recordDate; }
    public Double getTemperature() { return temperature; }
    public void setTemperature(Double temperature) { this.temperature = temperature; }
    public String getBloodPressure() { return bloodPressure; }
    public void setBloodPressure(String bloodPressure) { this.bloodPressure = bloodPressure; }
    public String getSymptoms() { return symptoms; }
    public void setSymptoms(String symptoms) { this.symptoms = symptoms; }

    @Override
    public String toString() {
        return "HealthInfo{" +
                "id=" + id +
                ", elderId=" + elderId +
                ", recordDate=" + recordDate +
                ", temperature=" + temperature +
                ", bloodPressure='" + bloodPressure + '\'' +
                ", symptoms='" + symptoms + '\'' +
                '}';
    }
}